package org.nathanielyoung.fbb;

import java.util.Random;

public class RandomPiece {

	private Random random;
	
	public RandomPiece() {
		random = new Random();
	}
	
	public RandomPiece(long seed) {
		random = new Random(seed);
	}
	
	public int nextPiece() {
		return random.nextInt(7);
	}
	
	public int[] firstPieces() {
		return new int[] { random.nextInt(7), random.nextInt(7), random.nextInt(7) };
	}
}
